/*
 * XML.java
 *
 * Created on July 17, 2007, 1:35 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.atomojo.app.client;

import java.net.URI;
import org.infoset.xml.Name;
import org.restlet.data.MediaType;

/**
 *
 * @author alex
 */
public interface XML
{
   
   public static final MediaType ATOM_MEDIA_TYPE = MediaType.valueOf("application/atom+xml");
   public static final URI APP_NAMESPACE = URI.create("http://www.w3.org/2007/app");
   public static final URI ATOM_NAMESPACE = URI.create("http://www.w3.org/2005/Atom");
   
   public static Name SERVICE = Name.create(APP_NAMESPACE,"service");
   public static Name WORKSPACE = Name.create(APP_NAMESPACE,"workspace");
   public static Name COLLECTION = Name.create(APP_NAMESPACE,"collection");
   public static Name ACCEPT = Name.create(APP_NAMESPACE,"accept");
   
   public static URI OLD_NAMESPACE = URI.create("http://purl.org/atom/app#");
   public static Name OLD_SERVICE = Name.create(OLD_NAMESPACE,"service");
   public static Name OLD_WORKSPACE = Name.create(OLD_NAMESPACE,"workspace");
   public static Name OLD_COLLECTION = Name.create(OLD_NAMESPACE,"collection");

   public static final Name FEED_NAME = Name.create(ATOM_NAMESPACE,"feed");
   public static final Name ENTRY_NAME = Name.create(ATOM_NAMESPACE,"entry");
   public static final Name TITLE_NAME = Name.create(ATOM_NAMESPACE,"title");
   public static final Name SUMMARY_NAME = Name.create(ATOM_NAMESPACE,"summary");
   public static final Name ID_NAME = Name.create(ATOM_NAMESPACE,"id");
   public static final Name LINK_NAME = Name.create(ATOM_NAMESPACE,"link");
   public static final Name CONTENT_NAME = Name.create(ATOM_NAMESPACE,"content");
   public static final Name PUBLISHED_NAME = Name.create(ATOM_NAMESPACE,"published");
   public static final Name UPDATED_NAME = Name.create(ATOM_NAMESPACE,"updated");
   public static final Name EDITED_NAME = Name.create(APP_NAMESPACE,"edited");
   public static final Name AUTHOR_NAME = Name.create(ATOM_NAMESPACE,"author");
   public static final Name CATEGORY_NAME = Name.create(ATOM_NAMESPACE,"category");
   public static final Name NAME_NAME = Name.create(ATOM_NAMESPACE,"name");
}
